<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('chart',array('status'=>2))}">印刷中</a></li>
			<li><a href="{:U('chart',array('status'=>3))}">已完成</a></li>
			<li><a href="{:U('chart',array('status'=>4))}">已取消</a></li>
			<li><a href="{:U('count',array('status'=>5))}">溯源统计</a></li>
			<li><a href="{:U('count_red',array('status'=>6))}">红包统计</a></li>
			<li class="active"><a href="{:U('count_detail',array('status'=>7))}">溯源统计详情</a></li>
		</ul>
		<form class="well form-search" method="GET" action="/index.php">
			<input type="hidden" name="g" value="Qrcode">
			<input type="hidden" name="m" value="AdminOrder">
			<input type="hidden" name="a" value="count_detail">
			时间：
			<input type="text" name="starttime" class="js-date" value="{$starttime|default=''}" style="width: 80px;" autocomplete="off" data-date-format="yyyy-mm">-
			<input type="text" class="js-date" name="endtime" value="{$endtime}" style="width: 80px;" autocomplete="off" data-date-format="yyyy-mm">
			<select name="uid">
				<option>用户</option>
				<foreach name="users" item="val">
				<option value="{$val.id}" <if condition="$uid eq $val['id']"></if>>{$val.user_nicename}</option>
				</foreach>
			</select>
			<input type="submit" class="btn btn-primary" value="搜索" />
		</form>
		<table class="table">
			<tr>
				<td>客户</td>
				<td>批次</td>
				<td>二维码数量</td>
				<td>扫码率</td>
			</tr>
			<foreach name="list" item="val">
			<tr>
				<td>{$com[$val['uid']]}</td>
				<td>{$val.batch}</td>
				<td>{$val.count}</td>
				<td>{$val.percent}</td>
			</tr>
			</foreach>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>